package com.MyDemo.demo.enums;

import com.MyDemo.demo.strategy.OrderStrategy;

/**
 * 订单事件枚举
 */
public enum OrderEventsEnum implements OrderStrategy {
    /**
     * order
     */
    ORDER{
        @Override
        public void handle(OrderEventsEnum event) {
            System.out.println("订单创建");
        }
    },
    /**
     * shipping
     */
    SHIPPING{
        @Override
        public void handle(OrderEventsEnum event) {
            System.out.println("订单发货");
        }
    },
    /**
     * withdraw
     */
    WITHDRAW{
        @Override
        public void handle(OrderEventsEnum event) {
            System.out.println("订单撤销");
        }
    },
    /**
     * receive
     */
    RECEIVE{
        @Override
        public void handle(OrderEventsEnum event) {
            System.out.println("订单收货");
        }
    };
}
